//
//  BusDataManager.h
//  SQLIteTest
//
//  Created by 修勇 黄 on 12-7-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

@class XXSQLiteOpe;

//notication


@interface BusDataManager : NSObject{

    XXSQLiteOpe *dataOpe;
}

+(BusDataManager *)currentBusDataManager;


@property (nonatomic,retain)NSString *busDataFilePath;


@property (nonatomic,readonly)NSString *cityName;

@property (nonatomic,readonly)NSString *date;

-(NSArray *)queryAllBusDataUpdateByPathList:(NSArray *)pathList;

//模糊搜索线路列表 参数:线路的名字

-(NSArray *)fuzzyQueryBusLineListWithFuzzyWord:(NSString *)text;


//搜索线路的所经过的站点 参数:线路的id

-(NSDictionary *)queryBusAllStationWithLineID:(NSString *)lineID;


//模糊搜索站点列表 参数:站点的名字

-(NSArray *)fuzzyQueryBusStopListWithFuzzyWord:(NSString *)text;

//搜索经过站点的所有线路 参数 站点id

-(NSArray *)queryBusLineListPassTheStopID:(NSString *)stopID;

//搜索是否有直达的线路 参数 其实站点id

-(NSArray *)queryDirectBusLineStartStopID:(NSString *)startStop endStopID:(NSString *)endStop;

//搜索转乘线路 参数 起始站点 

-(NSArray *)queryTwoRideStartStopID:(NSString *)startStop endStopID:(NSString *)endStop;

// 查询 线路的单行线路

-(NSArray *)querySingleBusLineByBusID:(NSString *)lineID type:(NSString *)type fromIndex:(NSString *)fromIndex toIndex:(NSString *)toIndex;



@end


NSString *const BusDataManagerDataBaseFileChangeNSNotification;
NSString *const BusDataManagerCurrentDataBaseDataUpdateNotification;
